package com.lovo.system.controller;

import com.lovo.system.dto.PermissionsDto;
import com.lovo.system.service.IPermissionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/permissions")
public class PermissionsController {

    @Autowired
    IPermissionsService permissionsService;

    @RequestMapping("/info")
    public List<PermissionsDto> info(){
        return permissionsService.init();
    }

}
